import request from '@/utils/request'

export function listRole(queryForm) {
  return request({
    url: 'system/role/query',
    method: 'get',
    params: queryForm
  })
}

export function addRole(editForm) {
  return request({
    url: 'system/role/add',
    method: 'post',
    params: editForm
  })
}

export function modifyRole(editForm) {
  return request({
    url: 'system/role/modify',
    method: 'post',
    params: editForm
  })
}

export function detailRole(id) {
  return request({
    url: 'system/role/detail',
    method: 'get',
    params: { id }
  })
}

export function deleteRole(id) {
  return request({
    url: 'system/role/delete',
    method: 'delete',
    params: { id }
  })
}
